//
//  ADScrollCell.m
//  SXH
//
//  Created by Ryan on 15/12/3.
//  Copyright © 2015年 lyss. All rights reserved.
//

#import "ADScrollCell.h"

@implementation ADScrollCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [UIColor clearColor];
           }
    return self;
}

- (void)setImageArray:(NSMutableArray *)imageArray
{
//    self.imageArray = imageArray;
    if (self.eScrollerView == nil) {
        self.eScrollerView = [[EScrollerView alloc]initWithFrameRect:CGRectMake(0, 0, SCREEN_WIDTH, 100/320.f*SCREEN_WIDTH) ImageStringArray:imageArray TitleStringArray:nil];
        [self addSubview:self.eScrollerView];
    }


}
@end
